package com.car.dao.impl;

import com.car.dao.StoreDao;
import com.car.domain.Car;
import com.car.utils.JDBCUtil;

import java.util.List;

public class StoreDaoImpl implements StoreDao {
    /**
     * 展示汽车 状态为0的汽车
     * select * from t_car where status = 0
     *
     * @return List<Car>
     */
    @Override
    public List<Car> display() throws Exception {
        String sql = "select * from t_car where status = 0";
        return JDBCUtil.queryList(sql,Car.class);
    }
}
